<extend name="./Application/Common/View/block/base.php" />
<block name="header">
    <include file="./Application/Admin/View/block/easyui_header.php" />
    <link rel="stylesheet" type="text/css" href="/Public/uploadfy/uploadify.css" />

</block>
<block name="bdoy">
    <body>
    <input id="import_button" type="file" multiple="true" value="" />
    </body>
</block>
<block name="footExtendJs">
    <script type="text/javascript" src="/Public/uploadfy/jquery.uploadify.min.js"></script>
    <script type="text/javascript">
        $('#import_button').uploadify({
            'swf'      : '/Public/uploadfy/uploadify.swf',
            'uploader' : '/Manage/Admin/uploadify',
            'buttonText' : '上传文件',
            'onUploadSuccess' : function(file, data, response) {
                data = data.trim();
                var url = '{:I('get.url')}?file_path='+data;
                ajaxLoading();
                $.get(url, function(res){
                    ajaxLoadEnd();
                    alert(res);
                    window.close();
                });
            }
        });
    </script>


</block>
